package cn.edu.sgu.www.mhxysy.service.fabao.impl;

import cn.edu.sgu.www.mhxysy.entity.fabao.FabaoLiangyiType;
import cn.edu.sgu.www.mhxysy.mapper.fabao.FabaoLiangyiTypeMapper;
import cn.edu.sgu.www.mhxysy.service.fabao.FabaoLiangyiTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author 沐雨橙风ιε
 * @version 1.0
 */
@Service
public class FabaoLiangyiTypeServiceImpl implements FabaoLiangyiTypeService {

    private final FabaoLiangyiTypeMapper fabaoLiangyiTypeMapper;

    @Autowired
    public FabaoLiangyiTypeServiceImpl(FabaoLiangyiTypeMapper fabaoLiangyiTypeMapper) {
        this.fabaoLiangyiTypeMapper = fabaoLiangyiTypeMapper;
    }

    @Override
    public List<FabaoLiangyiType> selectAll() {
        return fabaoLiangyiTypeMapper.selectList(null);
    }

    @Override
    public FabaoLiangyiType selectById(Integer id) {
        return fabaoLiangyiTypeMapper.selectById(id);
    }

}